python api automation using requests module